package com.smalls.newvideotwo.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

@Table(name = "Album")
public class Album implements Serializable {
    @Column(name = "category_id")
    private String category_id;
    @Column(name = "albumPic")
    private String albumPic;
    @Column(isId = true,name = "movie_id")
    private String movie_id;
    @Column(name = "media_code")
    private String media_code;
    @Column(name = "media_type")
    private String media_type;
    @Column(name = "title")
    private String title;
    @Column(name = "release_year")
    private int release_year;
    @Column(name = "country")
    private String country;
    @Column(name="type")
    private int type;

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getActors() {
        return actors;
    }

    public void setActors(String actors) {
        this.actors = actors;
    }

    @Column(name="director")
    private String director;
    @Column(name="actors")
    private String actors;

    public long getLast_update() {
        return last_update;
    }

    public void setLast_update(long last_update) {
        this.last_update = last_update;
    }

    @Column(name="last_update")
    private long last_update;
    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    @Column(name="sequence")
    private int sequence;

    public float getRated_stars() {
        return rated_stars;
    }

    public void setRated_stars(float rated_stars) {
        this.rated_stars = rated_stars;
    }

    @Column(name="rated_stars")
    private float rated_stars;

    public String getGenres() {
        return genres;
    }

    public void setGenres(String genres) {
        this.genres = genres;
    }

    @Column(name = "genres")
    private String genres;

    public String getShort_name() {
        return short_name;
    }

    public void setShort_name(String short_name) {
        this.short_name = short_name;
    }

    @Column(name = "short_name")
    private String short_name;

    public String getFull_name() {
        return full_name;
    }

    public void setFull_name(String full_name) {
        this.full_name = full_name;
    }

    @Column(name = "full_name")
    private String full_name;

    public int getRelease_year() {
        return release_year;
    }

    public void setRelease_year(int release_year) {
        this.release_year = release_year;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String getCategory_id() {
        return category_id;
    }

    public void setCategory_id(String category_id) {
        this.category_id = category_id;
    }

    public String getAlbumPic() {
        return albumPic;
    }

    public void setAlbumPic(String albumPic) {
        this.albumPic = albumPic;
    }

    public String getMovie_id() {
        return movie_id;
    }

    public void setMovie_id(String movie_id) {
        this.movie_id = movie_id;
    }

    public String getMedia_code() {
        return media_code;
    }

    public void setMedia_code(String media_code) {
        this.media_code = media_code;
    }

    public String getMedia_type() {
        return media_type;
    }

    public void setMedia_type(String media_type) {
        this.media_type = media_type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getShort_title() {
        return short_title;
    }

    public void setShort_title(String short_title) {
        this.short_title = short_title;
    }

    @Column(name = "short_title")
    private String short_title;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Album person = (Album) o;
        return movie_id.equals(person.movie_id);

    }

    @Override
    public int hashCode() {
        int result = sequence;
        result = 31 * result + movie_id.hashCode();
        return result;
    }
}
